<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%
import java.io.IOException;
import java.io.PrintWriter;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;

import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
%>
<html>
<head>
<title>Scriptler Web - scripts for hudson</title>

<link rel="shortcut icon" href="/images/gaelyk-small-favicon.png"
	type="image/png">
<link rel="icon" href="/images/gaelyk-small-favicon.png"
	type="image/png"><!-- Simple OpenID Selector -->
<link rel="stylesheet" type="text/css" href="/css/openid.css" />
<link rel="stylesheet" type="text/css" href="/css/main.css" />
<script type="text/javascript" src="/js/jquery-1.2.6.min.js"></script> <script
	type="text/javascript">
		function rate(id,rating) {
			jQuery.ajax({
				   type: "POST",
				   url: "/script/rate/"+id+"/"+rating,
				   success: function(msg){
				     alert('Thanks!'); 
				     location.reload();
				   }
				 });
			}
		</script> <script type="text/javascript">
	jQuery(document).ready(function() {
	    openid.init('openid_identifier');
	});
	</script>
</head>
<body>

<table width="100%">
	<tr>
		<% if(user){ %>
		<td align="right"><a href="/sec/provider/edit">edit provider
		profile</a> | <a href="<%= users.createLogoutURL('/catalog/list') %>">sign
		out</a></td>
		<% }else{ %>
		<td align="right"><a href="/sec/provider/edit">sign in</a></td>
		<% } %>
	</tr>
</table>


<div>
<table>
	<tr>
		<td><a href="/"><img src="/images/notepad.gif" title="Scriptler Web"
			alt="Scriptler Web" /></a></td>
		<td><span class="title">Scriptler Web</span></td>
	</tr>
</table>
</div>
<br />
<div id="topNav">
<table>
	<tr>
		<td><a href="/catalog/list">script catalog</a> | <a
			href="/catalog/xml">as xml</a> | <a href="/provider/list">providers</a>
		| <a href="/sec/script/new">provide a new script</a> | <a
			href="/about">about</a></td>
	</tr>
</table>
</div>

<div id="msg">
<% if (request.getAttribute('msg')) { %>
<p><b><%= request.getAttribute('msg') %></b></p>
<% } %>
</div>
<div>